package org.broadband_forum.obbaa.netconf.mn.fwk.server.model.jukebox1;

import org.broadband_forum.obbaa.netconf.persistence.test.entities.jukebox3.JukeboxConstants;
import org.broadband_forum.obbaa.netconf.stack.api.annotations.YangChild;
import org.broadband_forum.obbaa.netconf.stack.api.annotations.YangContainer;
import org.broadband_forum.obbaa.netconf.stack.api.annotations.YangParentId;
import org.broadband_forum.obbaa.netconf.stack.api.annotations.YangSchemaPath;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity(name = "getwithstatefilter_jukebox")
@Table(name = "getwithstatefilter_jukebox")
@YangContainer(name="jukebox", namespace = JukeboxConstants.JB_NS, revision= JukeboxConstants.JB_REVISION)
public class Jukebox {
	@Id
	@YangParentId
	String parentId;

	@OneToOne(cascade = CascadeType.ALL, orphanRemoval = true)
	@YangChild
	private Library library;

	@YangSchemaPath
	@Column(length = 1000)
	String schemaPath;

	public String getSchemaPath() {
		return schemaPath;
	}

	public void setSchemaPath(String schemaPath) {
		this.schemaPath = schemaPath;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Library getLibrary() {
		return library;
	}

	public void setLibrary(Library library) {
		this.library = library;
	}
}
